<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    {{ message }}
    <br>
    {{ message.split('').reverse().join('') }}
    <br>
    {{ html }}
    <br>
    <span v-html="html"></span>
    <div title="{{ title }}">这是一段文本，这是错误的演示</div>
    <div v-bind:title="title">文本内容</div>
    <div :title="title">文本内容，简写</div>
  </div>

  <script src="./libs/vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app', // view
      data: { // model
        message: 'Hello world!!!',
        cart: [{
          id: 1,
          title: '商品标题'
        }],
        $money: 1111,
        _total: 2222,
        html: '<input placeholder="请输入内容" />',
        title: '这是提示'
      }
    })
  </script>
</body>
</html>